use bytes::{Bytes, BytesMut};
use protobuf::{Message, ProtobufError};
use serde::{Deserialize, Serialize};
use std::borrow::Borrow;
pub trait DeSerialized {
    // type Obj;
    fn deserialized(&mut self, body: &Bytes) -> &mut Self;
}

pub trait Serialized {
    fn serialized(&self) -> bytes::Bytes;
}
